package com.cvai.service;

import com.cvai.R.PageResult;
import com.cvai.domain.dto.LoginDto;
import com.cvai.domain.po.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cvai.domain.vo.UserVo;
import jakarta.servlet.http.HttpServletRequest;
import me.zhyd.oauth.model.AuthResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cv
 * @since 2025-03-09
 */
public interface IUserService extends IService<User> {

    UserVo login(LoginDto loginDto);

    UserVo register(LoginDto loginDto);

    PageResult getChatList(Integer pageNum);

    String render(AuthResponse login);

    UserVo getUserVo(String code);

    void logout(HttpServletRequest response);
}
